package com.smartcampusbackend.model;

import lombok.Data;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class Announcement {
    private Integer id;
    private String type; // 新闻、公告、活动
    private String title;
    private String content;
    private String attachment;//附件
    private String publisher;
    private Date publishTime;
    private String location;
    private String remark;//备注
    private String images;//图片
    private String layout;//排版
    // 活动
    private Integer activityLimit;//人数上限
    private String signupUrl;//报名链接
    private Date signupDeadline; // 报名截止时间
    private String status; // 报名中、已满员、已截止
    // 草稿
    private Boolean isDraft; // 是否为草稿
    private Date draftTime; // 草稿保存时间
    
    // 附件列表（用于接收前端数据）
    private List<Map<String, Object>> attachments;
} 